<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
		<title>用户注册-已注册的手机号</title>
		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/app.css">
		<style>
			body{#fff}
			body{font-weight: bold;}
			.mui-bar-nav{background:#fff;color: #000;}
			.mui-bar-nav .mui-icon-left-nav{color:#000}
			.mui-bar-nav>.back{color:#000;margin-top: .04rem;}
			.mui-content{padding-top:0 !important;width: 100%;height: 100%;position: absolute;/*top: 0.9rem;*/left: 0;background: #fff;}
			.mui-content .title{text-align: center;margin-top: 0.3rem;font-size: 0.36rem;color: #333333;margin-bottom: 1.3rem;}
			.mui-content .plaint{width: 100%;height: 1.57rem;background: url(../../images/care.png) no-repeat center center;background-size: contain;margin-bottom: 0.1rem;margin-top: 0.1rem;}
			.mui-content .tel{width: 100%;height: 0.28rem;font-size: 0.28rem;color: #333333;text-align: center;}
			.mui-content .warning{width: 100%;height: 0.62rem;color: #d90606;text-align: center;padding-left: 2.4rem;padding-right: 2.4rem;font-size: 0.28rem;margin-top: 0.2rem;}
			.mui-content .name_num{width: 100%;height:0.64rem ;font-size: 0.28rem;margin-top: 0.98rem;padding-left: 0.34rem;}
			.mui-content .btn_box{width: 5.73rem;height: 0.68rem;margin: 0 auto;margin-top: 1.15rem;margin-bottom: 0.65rem;}
			.mui-content .btn_box .mui-btn{width: 2.8rem;height: 100%;}
			.mui-content .info{font-size: 0.28rem;padding-left: 0.34rem;padding-right: 0.34rem;}
		</style>
	</head>
	<body>
		<!--<div class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<a class="back">返回</a>
		</div>-->
		<div class="mui-content" id="app">
			<!--<div class="title">注册账号</div>-->
			<div class="plaint"></div>
			<div class="tel" style="font-weight: bold;">手机号<font>{{telNumber}}</font></div>
			<div class="warning">已被注册</div>
			<template v-if="ishow">
			<div class="name_num">
				使用人
				<div class="name">{{realName}}</div>
				<div class="idNum">{{cardId}}</div>
			</div>
			</template>
			
			<div class="btn_box">
				<div style="margin: 0.28rem 0;color: #007BFF;font-weight: normal;">如果您是该用户，请：</div>
				<button class="forget mui-btn mui-btn-primary">忘记密码</button>
				<button class="login mui-btn mui-btn-primary">前往登录</button>
			</div>
			<div class="info" style="font-size: 0.26rem;padding-top: 0.38rem;">
				请注意：一个人只可注册一个实名账号，无法重复注册。
			</div>
		</div>
	
	</body>
	<script>
		function my_immersed(){
			
		}
	</script>
	<script src="../../js/immersed.js"></script>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/common.js"></script>
	<script src="../../js/app.js" ></script>
	<script src="../../js/vue.min.js" ></script>
	<script>
		var vm = new Vue({
			el:'#app',
			data:{
				telNumber:'',
				ishow:false,
				realName:'',
				cardId:''
			}
		})
		
		var phone = '';
		mui.plusReady(function(){
			initDatas();
		});
		function initDatas(){
			var login = utils.getUrlParam('userLogin');
			phone = utils.getUrlParam('phone');
			var idVerifyStatus = utils.getUrlParam('idVerifyStatus');
			var lxrName = localStorage.getItem('lxrName');
			lxrName = lxrName?lxrName:'';
			var lxrCardno = utils.getUrlParam('lxrCardno');
			
			
			vm.telNumber = phone;
			
			var smFlag = idVerifyStatus == '1'?'已实名':'未实名';
			
			if (idVerifyStatus == '1') {
				vm.ishow = true;
				vm.realName = '姓名：**' + lxrName.substr(lxrName.length - 1);
				vm.cardId = '身份证号：'+lxrCardno.substr(0,5) + '*****************' + lxrCardno.substr(lxrCardno.length - 4);
			} else {
				
			}
		}
		document.querySelector('.login').addEventListener('tap',function(){
			closeWin();
		});
		//找回密码
		document.querySelector('.forget').addEventListener('tap',function(){
			utils.ajax('appHttpService/isUserExcisied.do',function(data){
				var data = JSON.parse(data);
				if (data.state == '0') {
					var params = {"loginUserName":phone};
					params.phone = data.phone;
					params.email = data.email;
					localStorage.setItem('quesA',data.quesA);
					localStorage.setItem('quesB',data.quesB);
					showTemplates('recoverPassword1.html','找回密码','_www/src/login/recoverPassword1.html?'+jsonToParams(params));
				} else {
					mui.toast(data.msg);
				}
			},'account='+phone,null,function(){
				mui.toast('抱歉，当前服务不可用，请稍后再试');
			});
		});
		function closeWin(){
			var reg1Webview = plus.webview.getWebviewById('register.html');
			if (reg1Webview) {
				reg1Webview.evalJS('mui.back();');
			}
			var reg4Webview = plus.webview.getWebviewById('register4.html');
			if (reg4Webview) {
				reg4Webview.evalJS('mui.back();');
			}
		}
	</script>
</html>